//
//  ReTopTitleView.m
//  录音
//
//  Created by ywy on 2016/12/25.
//  Copyright © 2016年 Wely. All rights reserved.
//

#import "ReTopTitleView.h"

@implementation ReTopTitleView
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self creatBaseUI:frame];
    }
    return self;
}
-(void)creatBaseUI:(CGRect)frame
{
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 7, frame.size.width, 30)];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.textColor = RERGBColor(204, 204, 204);
    self.titleLabel.font = [UIFont systemFontOfSize:16.f];
    [self addSubview:self.titleLabel];
    
    
    self.lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(frame.size.width/2-40, 32, 80, 2)];
    self.lineLabel.textAlignment = NSTextAlignmentCenter;
    self.lineLabel.backgroundColor = [UIColor redColor];
    self.lineLabel.hidden = YES;
    [self addSubview:self.lineLabel];

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
